package com.ejuornal.action;

import javax.annotation.Resource;

import com.ejuornal.bean.Check;
import com.ejuornal.service.CheckService;

public class CheckAction extends BaseAction<Check> {
	
	private static final long serialVersionUID = 1L;
	private CheckService checkService;
	private Check check;
	private String articalId;
	
	public String getSuggestion(){
		check = checkService.findSuggestion(Integer.parseInt(articalId));
		return SUCCESS;
	}
	
	public CheckService getCheckService() {
		return checkService;
	}
	@Resource(name="checkService")
	public void setCheckService(CheckService checkService) {
		this.checkService = checkService;
	}
	public Check getCheck() {
		return check;
	}
	public void setCheck(Check check) {
		this.check = check;
	}
	public String getArticalId() {
		return articalId;
	}
	public void setArticalId(String articalId) {
		this.articalId = articalId;
	}
}
